package com.example.xt.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.xt.entity.Rder;
import com.example.xt.mapper.RderMapper;
import com.example.xt.service.IRderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2022-03-05
 */
@Service
public class RderServiceImpl extends ServiceImpl<RderMapper, Rder> implements IRderService {
    @Resource
    RderMapper rderMapper;

    @Override
    public List<Rder> get(Integer medicine) {
        return rderMapper.getrder(medicine);
    }

    @Override
    public boolean rent(Integer medicine) {
        return rderMapper.rent(medicine);
    }
}
